import request from '../utils/request'

import {
  encrypt
} from '../utils/secret'

import {
  md5
} from '../utils/md5'

export function getSalt() {
  return request({
    url: 'password/getSalt',
    method: 'GET',
  })
}

export function insertUser1(user) {
  return request({
    url: 'user/insertUser',
    method: 'POST',
    data: {
      username: user.username,
      password: encrypt(user.password)
    }
  })
}

export function insertUser2(user) {

}

